package annotation;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;

import javax.swing.plaf.PanelUI;

//配置类
@Configuration
// 扫描指定包
@ComponentScan("qita")
public class Config {
    // 将返回结果存放到容器中
    @Bean
    public DemoE e(){
        //手动产生了DemoE的对象
        return new DemoE();
    }
}
